package sv.gob.mh.dgii.model;
/**
 * <b>Created by </b>mirday
 * <b>for</b>jsiit-model
 * <b>on</b> March 5, 2012 07:35:22 AM
 * <b>Purpose</b> 
 * <p>
 * </p>
 */
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


@Entity
@Table(name = "PT_TRAMITE", schema = "PETICIONES")
public class PtTramite implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private String ctramite;
	private String dtramite;
	private String stramite;
	private Integer bactiva;
	private String cusuario;
	private String cusuariomod;
	private Date fhingreso;
	private Date fhmodificacion;

	public PtTramite() {
	}

	public PtTramite(String ctramite, String dtramite, String stramite, Integer bactiva,
			 String cusuario, Date fhingreso) {
		this.ctramite = ctramite;
		this.dtramite = dtramite;
		this.stramite = stramite;
		this.bactiva = bactiva;
		this.cusuario = cusuario;
		this.fhingreso = fhingreso;
	}
	
	public PtTramite(String ctramite, String dtramite, String stramite, Integer bactiva,
			 String cusuario, String cusuariomod, Date fhingreso, Date fhmodificacion) {
		this.ctramite = ctramite;
		this.dtramite = dtramite;
		this.stramite = stramite;
		this.bactiva = bactiva;
		this.cusuario = cusuario;
		this.cusuariomod = cusuariomod;
		this.fhingreso = fhingreso;
		this.fhmodificacion = fhmodificacion;
	}

	@Id
	@Column(name = "C_TRAMITE", unique = true, nullable = false, length = 1, insertable = true, updatable = true)
	public String getCtramite() {
		return this.ctramite;
	}
	public void setCtramite(String ctramite) {
		this.ctramite = ctramite;
	}

	@Column(name = "D_TRAMITE", nullable = false, length = 100, insertable = true, updatable = true)
	public String getDtramite() {
		return this.dtramite;
	}
	public void setDtramite(String dtramite) {
		this.dtramite = dtramite;
	}	
	
	@Column(name = "S_TRAMITE", nullable = false, length = 10, insertable = true, updatable = true)
	public String getStramite() {
		return this.stramite;
	}
	public void setStramite(String stramite) {
		this.stramite = stramite;
	}	

	@Column(name = "B_ACTIVA", nullable = false, precision = 1, scale = 0, insertable = true, updatable = true)
	public Integer getBactiva() {
		return this.bactiva;
	}
	public void setBactiva(Integer bactiva) {
		this.bactiva = bactiva;
	}	
	
	@Column(name = "C_USUARIO", nullable = false, length = 30, insertable = true, updatable = true)
	public String getCusuario() {
		return this.cusuario;
	}
	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;	
	}	
	
	@Column(name = "C_USUARIO_MOD", nullable = true, length = 30, insertable = true, updatable = true)
	public String getCusuariomod() {
		return cusuariomod;
	}

	public void setCusuariomod(String cusuariomod) {
		this.cusuariomod = cusuariomod;
	}

	
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", nullable = false, length = 7, insertable = true, updatable = true)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_MODIFICACION", nullable = true, length = 7, insertable = true, updatable = true)
	public Date getFhmodificacion() {
		return fhmodificacion;
	}
	public void setFhmodificacion(Date fhmodificacion) {
		this.fhmodificacion = fhmodificacion;
	}	
	
}
